package com.violet.base.api.dic.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: wqf
 * @Date: 2022/10/27
 * @Description:
 */
@Schema(description = "字典数据DTO",name = "字典数据DTO")
@Data
public class DicItemDTO implements Serializable {
    /**
     * 主键id
     */
    @Schema(description = "主键id")
    private Long id;

    /**
     * 字典类别id 表b_dict_type 主键id
     */
    @NotNull(message = "字典类型不能为空")
    @Schema(description = "字典类别id", required = true)
    private Long dicTypeId;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空")
    @Schema(description = "字典名称", required = true)
    private String dictItemName;

    /**
     * 字典值
     */
    @NotBlank(message = "字典值不能为空")
    @Schema(description = "字典值", required = true)
    private String dictItemValue;

    /**
     * 上级id
     */
    @Schema(description = "上级id")
    private Integer parentId;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private String updateBy;

}
